package com.yuda.tools.miscellaneous.service.impl;

import com.yuda.tools.miscellaneous.dto.PaperCount;
import com.yuda.tools.miscellaneous.dto.PaperMachined;
import com.yuda.tools.miscellaneous.dto.SpartaExamConfig;
import com.yuda.tools.miscellaneous.mapper.PaperCountMapper;
import com.yuda.tools.miscellaneous.service.PaperCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaperCountServiceImpl implements PaperCountService {

    @Autowired
    private PaperCountMapper paperCountMapper;


    @Override
    public List<PaperCount> listPaperCount(String examUuid, String tableSuffix) {
        return paperCountMapper.listPaperCount(examUuid, tableSuffix);
    }

    @Override
    public String getAmountJson( String examUuid,String schoolId) {
        return paperCountMapper.getAmountJson(examUuid,schoolId);
    }

    @Override
    public List<PaperMachined> manufactured(String examUuid) {

        return paperCountMapper.manufactured(examUuid);
    }

    @Override
    public List<SpartaExamConfig> listExamUuids() {
        return paperCountMapper.listExamUuids();
    }
}
